set(COMMON_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)

set(COMMON_SOURCE
        ${COMMON_SOURCE_DIR}/Contracts.cpp
        ${COMMON_SOURCE_DIR}/FileLogger.cpp
        ${COMMON_SOURCE_DIR}/io/AseLoader.cpp
        ${COMMON_SOURCE_DIR}/io/AssimpLoader.cpp
        ${COMMON_SOURCE_DIR}/io/BrushFaceReader.cpp
        ${COMMON_SOURCE_DIR}/io/BspLoader.cpp
        ${COMMON_SOURCE_DIR}/io/CompilationConfigParser.cpp
        ${COMMON_SOURCE_DIR}/io/CompilationConfigWriter.cpp
        ${COMMON_SOURCE_DIR}/io/DefParser.cpp
        ${COMMON_SOURCE_DIR}/io/DkmLoader.cpp
        ${COMMON_SOURCE_DIR}/io/EntityDefinitionClassInfo.cpp
        ${COMMON_SOURCE_DIR}/io/EntityDefinitionLoader.cpp
        ${COMMON_SOURCE_DIR}/io/EntityDefinitionParser.cpp
        ${COMMON_SOURCE_DIR}/io/EntityModelLoader.cpp
        ${COMMON_SOURCE_DIR}/io/EntParser.cpp
        ${COMMON_SOURCE_DIR}/io/ExportOptions.cpp
        ${COMMON_SOURCE_DIR}/io/FgdParser.cpp
        ${COMMON_SOURCE_DIR}/io/GameConfigParser.cpp
        ${COMMON_SOURCE_DIR}/io/GameEngineConfigParser.cpp
        ${COMMON_SOURCE_DIR}/io/GameEngineConfigWriter.cpp
        ${COMMON_SOURCE_DIR}/io/ImageLoader.cpp
        ${COMMON_SOURCE_DIR}/io/ImageLoaderImpl.cpp
        ${COMMON_SOURCE_DIR}/io/ImageSpriteLoader.cpp
        ${COMMON_SOURCE_DIR}/io/LegacyModelDefinitionParser.cpp
        ${COMMON_SOURCE_DIR}/io/LoadEntityDefinitions.cpp
        ${COMMON_SOURCE_DIR}/io/LoadEntityModel.cpp
        ${COMMON_SOURCE_DIR}/io/LoadMaterialCollections.cpp
        ${COMMON_SOURCE_DIR}/io/LoadShaders.cpp
        ${COMMON_SOURCE_DIR}/io/MapFileSerializer.cpp
        ${COMMON_SOURCE_DIR}/io/MapHeader.cpp
        ${COMMON_SOURCE_DIR}/io/MapParser.cpp
        ${COMMON_SOURCE_DIR}/io/MapReader.cpp
        ${COMMON_SOURCE_DIR}/io/MaterialUtils.cpp
        ${COMMON_SOURCE_DIR}/io/Md2Loader.cpp
        ${COMMON_SOURCE_DIR}/io/Md3Loader.cpp
        ${COMMON_SOURCE_DIR}/io/MdlLoader.cpp
        ${COMMON_SOURCE_DIR}/io/MdxLoader.cpp
        ${COMMON_SOURCE_DIR}/io/NodeReader.cpp
        ${COMMON_SOURCE_DIR}/io/NodeSerializer.cpp
        ${COMMON_SOURCE_DIR}/io/NodeWriter.cpp
        ${COMMON_SOURCE_DIR}/io/ObjSerializer.cpp
        ${COMMON_SOURCE_DIR}/io/ParseModelDefinition.cpp
        ${COMMON_SOURCE_DIR}/io/PathQt.cpp
        ${COMMON_SOURCE_DIR}/io/Quake3ShaderParser.cpp
        ${COMMON_SOURCE_DIR}/io/ReadDdsTexture.cpp
        ${COMMON_SOURCE_DIR}/io/ReadFreeImageTexture.cpp
        ${COMMON_SOURCE_DIR}/io/ReadM8Texture.cpp
        ${COMMON_SOURCE_DIR}/io/ReadMipTexture.cpp
        ${COMMON_SOURCE_DIR}/io/ReadWalTexture.cpp
        ${COMMON_SOURCE_DIR}/io/ResourceUtils.cpp
        ${COMMON_SOURCE_DIR}/io/SkinLoader.cpp
        ${COMMON_SOURCE_DIR}/io/SprLoader.cpp
        ${COMMON_SOURCE_DIR}/io/StandardMapParser.cpp
        ${COMMON_SOURCE_DIR}/io/SystemPaths.cpp
        ${COMMON_SOURCE_DIR}/io/WorldReader.cpp
        ${COMMON_SOURCE_DIR}/mdl/AddRemoveNodesCommand.cpp
        ${COMMON_SOURCE_DIR}/mdl/AddRemoveNodesUtils.cpp
        ${COMMON_SOURCE_DIR}/mdl/Autosaver.cpp
        ${COMMON_SOURCE_DIR}/mdl/BezierPatch.cpp
        ${COMMON_SOURCE_DIR}/mdl/Brush.cpp
        ${COMMON_SOURCE_DIR}/mdl/BrushBuilder.cpp
        ${COMMON_SOURCE_DIR}/mdl/BrushFace.cpp
        ${COMMON_SOURCE_DIR}/mdl/BrushFaceAttributes.cpp
        ${COMMON_SOURCE_DIR}/mdl/BrushFaceHandle.cpp
        ${COMMON_SOURCE_DIR}/mdl/BrushFaceReference.cpp
        ${COMMON_SOURCE_DIR}/mdl/BrushNode.cpp
        ${COMMON_SOURCE_DIR}/mdl/BrushVertexCommands.cpp
        ${COMMON_SOURCE_DIR}/mdl/CircleShape.cpp
        ${COMMON_SOURCE_DIR}/mdl/ColorRange.cpp
        ${COMMON_SOURCE_DIR}/mdl/Command.cpp
        ${COMMON_SOURCE_DIR}/mdl/CommandProcessor.cpp
        ${COMMON_SOURCE_DIR}/mdl/CompareHits.cpp
        ${COMMON_SOURCE_DIR}/mdl/CompilationConfig.cpp
        ${COMMON_SOURCE_DIR}/mdl/CompilationProfile.cpp
        ${COMMON_SOURCE_DIR}/mdl/CompilationTask.cpp
        ${COMMON_SOURCE_DIR}/mdl/CurrentGroupCommand.cpp
        ${COMMON_SOURCE_DIR}/mdl/DecalDefinition.cpp
        ${COMMON_SOURCE_DIR}/mdl/EditorContext.cpp
        ${COMMON_SOURCE_DIR}/mdl/EmptyBrushEntityValidator.cpp
        ${COMMON_SOURCE_DIR}/mdl/EmptyGroupValidator.cpp
        ${COMMON_SOURCE_DIR}/mdl/EmptyPropertyKeyValidator.cpp
        ${COMMON_SOURCE_DIR}/mdl/EmptyPropertyValueValidator.cpp
        ${COMMON_SOURCE_DIR}/mdl/Entity.cpp
        ${COMMON_SOURCE_DIR}/mdl/EntityColorPropertyValue.cpp
        ${COMMON_SOURCE_DIR}/mdl/EntityDefinition.cpp
        ${COMMON_SOURCE_DIR}/mdl/EntityDefinitionFileSpec.cpp
        ${COMMON_SOURCE_DIR}/mdl/EntityDefinitionGroup.cpp
        ${COMMON_SOURCE_DIR}/mdl/EntityDefinitionManager.cpp
        ${COMMON_SOURCE_DIR}/mdl/EntityDefinitionUtils.cpp
        ${COMMON_SOURCE_DIR}/mdl/EntityLinkManager.cpp
        ${COMMON_SOURCE_DIR}/mdl/EntityModel.cpp
        ${COMMON_SOURCE_DIR}/mdl/EntityModelDataResource.cpp
        ${COMMON_SOURCE_DIR}/mdl/EntityModelManager.cpp
        ${COMMON_SOURCE_DIR}/mdl/EntityNode.cpp
        ${COMMON_SOURCE_DIR}/mdl/EntityNodeBase.cpp
        ${COMMON_SOURCE_DIR}/mdl/EntityProperties.cpp
        ${COMMON_SOURCE_DIR}/mdl/EntityPropertiesVariableStore.cpp
        ${COMMON_SOURCE_DIR}/mdl/EntityRotation.cpp
        ${COMMON_SOURCE_DIR}/mdl/Game.cpp
        ${COMMON_SOURCE_DIR}/mdl/GameConfig.cpp
        ${COMMON_SOURCE_DIR}/mdl/GameEngineConfig.cpp
        ${COMMON_SOURCE_DIR}/mdl/GameEngineProfile.cpp
        ${COMMON_SOURCE_DIR}/mdl/GameFileSystem.cpp
        ${COMMON_SOURCE_DIR}/mdl/GameInfo.cpp
        ${COMMON_SOURCE_DIR}/mdl/GameManager.cpp
        ${COMMON_SOURCE_DIR}/mdl/Grid.cpp
        ${COMMON_SOURCE_DIR}/mdl/Group.cpp
        ${COMMON_SOURCE_DIR}/mdl/GroupNode.cpp
        ${COMMON_SOURCE_DIR}/mdl/Hit.cpp
        ${COMMON_SOURCE_DIR}/mdl/HitAdapter.cpp
        ${COMMON_SOURCE_DIR}/mdl/HitFilter.cpp
        ${COMMON_SOURCE_DIR}/mdl/HitType.cpp
        ${COMMON_SOURCE_DIR}/mdl/InvalidUVScaleValidator.cpp
        ${COMMON_SOURCE_DIR}/mdl/Issue.cpp
        ${COMMON_SOURCE_DIR}/mdl/IssueQuickFix.cpp
        ${COMMON_SOURCE_DIR}/mdl/IssueType.cpp
        ${COMMON_SOURCE_DIR}/mdl/Layer.cpp
        ${COMMON_SOURCE_DIR}/mdl/LayerNode.cpp
        ${COMMON_SOURCE_DIR}/mdl/LinkedGroupUtils.cpp
        ${COMMON_SOURCE_DIR}/mdl/LinkSourceValidator.cpp
        ${COMMON_SOURCE_DIR}/mdl/LinkTargetValidator.cpp
        ${COMMON_SOURCE_DIR}/mdl/LongPropertyKeyValidator.cpp
        ${COMMON_SOURCE_DIR}/mdl/LongPropertyValueValidator.cpp
        ${COMMON_SOURCE_DIR}/mdl/Map_Assets.cpp
        ${COMMON_SOURCE_DIR}/mdl/Map_Brushes.cpp
        ${COMMON_SOURCE_DIR}/mdl/Map_CopyPaste.cpp
        ${COMMON_SOURCE_DIR}/mdl/Map_Entities.cpp
        ${COMMON_SOURCE_DIR}/mdl/Map_Geometry.cpp
        ${COMMON_SOURCE_DIR}/mdl/Map_Groups.cpp
        ${COMMON_SOURCE_DIR}/mdl/Map_Layers.cpp
        ${COMMON_SOURCE_DIR}/mdl/Map_NodeLocking.cpp
        ${COMMON_SOURCE_DIR}/mdl/Map_Nodes.cpp
        ${COMMON_SOURCE_DIR}/mdl/Map_NodeVisibility.cpp
        ${COMMON_SOURCE_DIR}/mdl/Map_NodeVisibility.cpp
        ${COMMON_SOURCE_DIR}/mdl/Map_Picking.cpp
        ${COMMON_SOURCE_DIR}/mdl/Map_Selection.cpp
        ${COMMON_SOURCE_DIR}/mdl/Map_World.cpp
        ${COMMON_SOURCE_DIR}/mdl/Map.cpp
        ${COMMON_SOURCE_DIR}/mdl/MapFormat.cpp
        ${COMMON_SOURCE_DIR}/mdl/Material.cpp
        ${COMMON_SOURCE_DIR}/mdl/MaterialCollection.cpp
        ${COMMON_SOURCE_DIR}/mdl/MaterialManager.cpp
        ${COMMON_SOURCE_DIR}/mdl/MissingClassnameValidator.cpp
        ${COMMON_SOURCE_DIR}/mdl/MissingDefinitionValidator.cpp
        ${COMMON_SOURCE_DIR}/mdl/MissingModValidator.cpp
        ${COMMON_SOURCE_DIR}/mdl/MixedBrushContentsValidator.cpp
        ${COMMON_SOURCE_DIR}/mdl/ModelDefinition.cpp
        ${COMMON_SOURCE_DIR}/mdl/ModelSpecification.cpp
        ${COMMON_SOURCE_DIR}/mdl/ModelUtils.cpp
        ${COMMON_SOURCE_DIR}/mdl/Node.cpp
        ${COMMON_SOURCE_DIR}/mdl/NodeContents.cpp
        ${COMMON_SOURCE_DIR}/mdl/NodeIndex.cpp
        ${COMMON_SOURCE_DIR}/mdl/NodeVisitor.cpp
        ${COMMON_SOURCE_DIR}/mdl/NonIntegerVerticesValidator.cpp
        ${COMMON_SOURCE_DIR}/mdl/Object.cpp
        ${COMMON_SOURCE_DIR}/mdl/Palette.cpp
        ${COMMON_SOURCE_DIR}/mdl/ParallelUVCoordSystem.cpp
        ${COMMON_SOURCE_DIR}/mdl/ParaxialUVCoordSystem.cpp
        ${COMMON_SOURCE_DIR}/mdl/PatchNode.cpp
        ${COMMON_SOURCE_DIR}/mdl/PickResult.cpp
        ${COMMON_SOURCE_DIR}/mdl/PointEntityWithBrushesValidator.cpp
        ${COMMON_SOURCE_DIR}/mdl/PointTrace.cpp
        ${COMMON_SOURCE_DIR}/mdl/Polyhedron_Instantiation.cpp
        ${COMMON_SOURCE_DIR}/mdl/PortalFile.cpp
        ${COMMON_SOURCE_DIR}/mdl/PropertyDefinition.cpp
        ${COMMON_SOURCE_DIR}/mdl/PropertyKeyWithDoubleQuotationMarksValidator.cpp
        ${COMMON_SOURCE_DIR}/mdl/PropertyValueWithDoubleQuotationMarksValidator.cpp
        ${COMMON_SOURCE_DIR}/mdl/PushSelection.cpp
        ${COMMON_SOURCE_DIR}/mdl/Quake3Shader.cpp
        ${COMMON_SOURCE_DIR}/mdl/ReparentNodesCommand.cpp
        ${COMMON_SOURCE_DIR}/mdl/RepeatStack.cpp
        ${COMMON_SOURCE_DIR}/mdl/ResourceId.cpp
        ${COMMON_SOURCE_DIR}/mdl/Selection.cpp
        ${COMMON_SOURCE_DIR}/mdl/SelectionChange.cpp
        ${COMMON_SOURCE_DIR}/mdl/SelectionCommand.cpp
        ${COMMON_SOURCE_DIR}/mdl/SetCurrentLayerCommand.cpp
        ${COMMON_SOURCE_DIR}/mdl/SetLinkIdsCommand.cpp
        ${COMMON_SOURCE_DIR}/mdl/SetLockStateCommand.cpp
        ${COMMON_SOURCE_DIR}/mdl/SetVisibilityCommand.cpp
        ${COMMON_SOURCE_DIR}/mdl/SoftMapBounds.cpp
        ${COMMON_SOURCE_DIR}/mdl/SoftMapBoundsValidator.cpp
        ${COMMON_SOURCE_DIR}/mdl/SwapNodeContentsCommand.cpp
        ${COMMON_SOURCE_DIR}/mdl/Tag.cpp
        ${COMMON_SOURCE_DIR}/mdl/TagAttribute.cpp
        ${COMMON_SOURCE_DIR}/mdl/TagManager.cpp
        ${COMMON_SOURCE_DIR}/mdl/TagMatcher.cpp
        ${COMMON_SOURCE_DIR}/mdl/TagVisitor.cpp
        ${COMMON_SOURCE_DIR}/mdl/Texture.cpp
        ${COMMON_SOURCE_DIR}/mdl/TextureBuffer.cpp
        ${COMMON_SOURCE_DIR}/mdl/TextureResource.cpp
        ${COMMON_SOURCE_DIR}/mdl/Transaction.cpp
        ${COMMON_SOURCE_DIR}/mdl/UndoableCommand.cpp
        ${COMMON_SOURCE_DIR}/mdl/UpdateBrushFaceAttributes.cpp
        ${COMMON_SOURCE_DIR}/mdl/UpdateLinkedGroupsCommand.cpp
        ${COMMON_SOURCE_DIR}/mdl/UpdateLinkedGroupsCommandBase.cpp
        ${COMMON_SOURCE_DIR}/mdl/UpdateLinkedGroupsHelper.cpp
        ${COMMON_SOURCE_DIR}/mdl/UVCoordSystem.cpp
        ${COMMON_SOURCE_DIR}/mdl/Validator.cpp
        ${COMMON_SOURCE_DIR}/mdl/ValidatorRegistry.cpp
        ${COMMON_SOURCE_DIR}/mdl/VertexHandleManager.cpp
        ${COMMON_SOURCE_DIR}/mdl/WorldBoundsValidator.cpp
        ${COMMON_SOURCE_DIR}/mdl/WorldNode.cpp
        ${COMMON_SOURCE_DIR}/octree.cpp
        ${COMMON_SOURCE_DIR}/Preference.cpp
        ${COMMON_SOURCE_DIR}/PreferenceManager.cpp
        ${COMMON_SOURCE_DIR}/Preferences.cpp
        ${COMMON_SOURCE_DIR}/render/ActiveShader.cpp
        ${COMMON_SOURCE_DIR}/render/AllocationTracker.cpp
        ${COMMON_SOURCE_DIR}/render/AttrString.cpp
        ${COMMON_SOURCE_DIR}/render/BoundsGuideRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/BrushRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/BrushRendererArrays.cpp
        ${COMMON_SOURCE_DIR}/render/BrushRendererBrushCache.cpp
        ${COMMON_SOURCE_DIR}/render/Camera.cpp
        ${COMMON_SOURCE_DIR}/render/Circle.cpp
        ${COMMON_SOURCE_DIR}/render/Compass.cpp
        ${COMMON_SOURCE_DIR}/render/Compass2D.cpp
        ${COMMON_SOURCE_DIR}/render/Compass3D.cpp
        ${COMMON_SOURCE_DIR}/render/EdgeRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/EntityDecalRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/EntityLinkRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/EntityModelRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/EntityRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/FaceRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/FontDescriptor.cpp
        ${COMMON_SOURCE_DIR}/render/FontFactory.cpp
        ${COMMON_SOURCE_DIR}/render/FontGlyph.cpp
        ${COMMON_SOURCE_DIR}/render/FontGlyphBuilder.cpp
        ${COMMON_SOURCE_DIR}/render/FontManager.cpp
        ${COMMON_SOURCE_DIR}/render/FontTexture.cpp
        ${COMMON_SOURCE_DIR}/render/FreeTypeFontFactory.cpp
        ${COMMON_SOURCE_DIR}/render/GL.cpp
        ${COMMON_SOURCE_DIR}/render/GridRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/GroupLinkRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/GroupRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/IndexArray.cpp
        ${COMMON_SOURCE_DIR}/render/IndexArrayMap.cpp
        ${COMMON_SOURCE_DIR}/render/IndexArrayMapBuilder.cpp
        ${COMMON_SOURCE_DIR}/render/IndexRangeMap.cpp
        ${COMMON_SOURCE_DIR}/render/IndexRangeRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/LinkRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/MapRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/MaterialIndexArrayMap.cpp
        ${COMMON_SOURCE_DIR}/render/MaterialIndexArrayMapBuilder.cpp
        ${COMMON_SOURCE_DIR}/render/MaterialIndexArrayRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/MaterialIndexRangeMap.cpp
        ${COMMON_SOURCE_DIR}/render/MaterialIndexRangeRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/ObjectRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/OrthographicCamera.cpp
        ${COMMON_SOURCE_DIR}/render/PatchRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/PerspectiveCamera.cpp
        ${COMMON_SOURCE_DIR}/render/PointGuideRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/PointHandleRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/PrimitiveRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/PrimType.cpp
        ${COMMON_SOURCE_DIR}/render/Renderable.cpp
        ${COMMON_SOURCE_DIR}/render/RenderBatch.cpp
        ${COMMON_SOURCE_DIR}/render/RenderContext.cpp
        ${COMMON_SOURCE_DIR}/render/RenderService.cpp
        ${COMMON_SOURCE_DIR}/render/RenderUtils.cpp
        ${COMMON_SOURCE_DIR}/render/SelectionBoundsRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/Shader.cpp
        ${COMMON_SOURCE_DIR}/render/ShaderManager.cpp
        ${COMMON_SOURCE_DIR}/render/ShaderProgram.cpp
        ${COMMON_SOURCE_DIR}/render/Shaders.cpp
        ${COMMON_SOURCE_DIR}/render/Sphere.cpp
        ${COMMON_SOURCE_DIR}/render/SpikeGuideRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/TextAnchor.cpp
        ${COMMON_SOURCE_DIR}/render/TextRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/TextureFont.cpp
        ${COMMON_SOURCE_DIR}/render/Transformation.cpp
        ${COMMON_SOURCE_DIR}/render/TriangleRenderer.cpp
        ${COMMON_SOURCE_DIR}/render/Vbo.cpp
        ${COMMON_SOURCE_DIR}/render/VboManager.cpp
        ${COMMON_SOURCE_DIR}/render/VertexArray.cpp
        ${COMMON_SOURCE_DIR}/Thread.cpp
        ${COMMON_SOURCE_DIR}/TrenchBroomApp.cpp
        ${COMMON_SOURCE_DIR}/ui/AboutDialog.cpp
        ${COMMON_SOURCE_DIR}/ui/ActionBuilder.cpp
        ${COMMON_SOURCE_DIR}/ui/ActionContext.cpp
        ${COMMON_SOURCE_DIR}/ui/Actions.cpp
        ${COMMON_SOURCE_DIR}/ui/Animation.cpp
        ${COMMON_SOURCE_DIR}/ui/AppInfoPanel.cpp
        ${COMMON_SOURCE_DIR}/ui/AssembleBrushTool.cpp
        ${COMMON_SOURCE_DIR}/ui/AssembleBrushToolController3D.cpp
        ${COMMON_SOURCE_DIR}/ui/BorderLine.cpp
        ${COMMON_SOURCE_DIR}/ui/BorderPanel.cpp
        ${COMMON_SOURCE_DIR}/ui/CameraAnimation.cpp
        ${COMMON_SOURCE_DIR}/ui/CameraLinkHelper.cpp
        ${COMMON_SOURCE_DIR}/ui/CameraTool2D.cpp
        ${COMMON_SOURCE_DIR}/ui/CameraTool3D.cpp
        ${COMMON_SOURCE_DIR}/ui/CellLayout.cpp
        ${COMMON_SOURCE_DIR}/ui/CellView.cpp
        ${COMMON_SOURCE_DIR}/ui/ChoosePathTypeDialog.cpp
        ${COMMON_SOURCE_DIR}/ui/ClickableLabel.cpp
        ${COMMON_SOURCE_DIR}/ui/ClickableTitleBar.cpp
        ${COMMON_SOURCE_DIR}/ui/ClipTool.cpp
        ${COMMON_SOURCE_DIR}/ui/ClipToolController.cpp
        ${COMMON_SOURCE_DIR}/ui/CollapsibleTitledPanel.cpp
        ${COMMON_SOURCE_DIR}/ui/ColorButton.cpp
        ${COMMON_SOURCE_DIR}/ui/ColorModel.cpp
        ${COMMON_SOURCE_DIR}/ui/ColorsPreferencePane.cpp
        ${COMMON_SOURCE_DIR}/ui/ColorTable.cpp
        ${COMMON_SOURCE_DIR}/ui/CompilationContext.cpp
        ${COMMON_SOURCE_DIR}/ui/CompilationDialog.cpp
        ${COMMON_SOURCE_DIR}/ui/CompilationProfileEditor.cpp
        ${COMMON_SOURCE_DIR}/ui/CompilationProfileListBox.cpp
        ${COMMON_SOURCE_DIR}/ui/CompilationProfileManager.cpp
        ${COMMON_SOURCE_DIR}/ui/CompilationRun.cpp
        ${COMMON_SOURCE_DIR}/ui/CompilationRunner.cpp
        ${COMMON_SOURCE_DIR}/ui/CompilationTaskListBox.cpp
        ${COMMON_SOURCE_DIR}/ui/CompilationVariables.cpp
        ${COMMON_SOURCE_DIR}/ui/Console.cpp
        ${COMMON_SOURCE_DIR}/ui/ContainerBar.cpp
        ${COMMON_SOURCE_DIR}/ui/ControlListBox.cpp
        ${COMMON_SOURCE_DIR}/ui/ControlListBox.cpp
        ${COMMON_SOURCE_DIR}/ui/CrashDialog.cpp
        ${COMMON_SOURCE_DIR}/ui/CrashReporter.cpp
        ${COMMON_SOURCE_DIR}/ui/CreateBrushesToolBase.cpp
        ${COMMON_SOURCE_DIR}/ui/CreateEntityTool.cpp
        ${COMMON_SOURCE_DIR}/ui/CreateEntityToolController.cpp
        ${COMMON_SOURCE_DIR}/ui/CurrentGameIndicator.cpp
        ${COMMON_SOURCE_DIR}/ui/CyclingMapView.cpp
        ${COMMON_SOURCE_DIR}/ui/DialogHeader.cpp
        ${COMMON_SOURCE_DIR}/ui/DrawShapeTool.cpp
        ${COMMON_SOURCE_DIR}/ui/DrawShapeToolController2D.cpp
        ${COMMON_SOURCE_DIR}/ui/DrawShapeToolController3D.cpp
        ${COMMON_SOURCE_DIR}/ui/DrawShapeToolExtension.cpp
        ${COMMON_SOURCE_DIR}/ui/DrawShapeToolExtensions.cpp
        ${COMMON_SOURCE_DIR}/ui/DrawShapeToolPage.cpp
        ${COMMON_SOURCE_DIR}/ui/DropTracker.cpp
        ${COMMON_SOURCE_DIR}/ui/EdgeTool.cpp
        ${COMMON_SOURCE_DIR}/ui/EdgeToolController.cpp
        ${COMMON_SOURCE_DIR}/ui/ElidedLabel.cpp
        ${COMMON_SOURCE_DIR}/ui/EnableDisableTagCallback.cpp
        ${COMMON_SOURCE_DIR}/ui/EntityBrowser.cpp
        ${COMMON_SOURCE_DIR}/ui/EntityBrowserView.cpp
        ${COMMON_SOURCE_DIR}/ui/EntityDefinitionFileChooser.cpp
        ${COMMON_SOURCE_DIR}/ui/EntityInspector.cpp
        ${COMMON_SOURCE_DIR}/ui/EntityPropertyEditor.cpp
        ${COMMON_SOURCE_DIR}/ui/EntityPropertyGrid.cpp
        ${COMMON_SOURCE_DIR}/ui/EntityPropertyItemDelegate.cpp
        ${COMMON_SOURCE_DIR}/ui/EntityPropertyModel.cpp
        ${COMMON_SOURCE_DIR}/ui/EntityPropertyTable.cpp
        ${COMMON_SOURCE_DIR}/ui/ExtrudeTool.cpp
        ${COMMON_SOURCE_DIR}/ui/ExtrudeToolController.cpp
        ${COMMON_SOURCE_DIR}/ui/FaceAttribsEditor.cpp
        ${COMMON_SOURCE_DIR}/ui/FaceInspector.cpp
        ${COMMON_SOURCE_DIR}/ui/FaceTool.cpp
        ${COMMON_SOURCE_DIR}/ui/FaceToolController.cpp
        ${COMMON_SOURCE_DIR}/ui/FlagsEditor.cpp
        ${COMMON_SOURCE_DIR}/ui/FlagsPopupEditor.cpp
        ${COMMON_SOURCE_DIR}/ui/FlashSelectionAnimation.cpp
        ${COMMON_SOURCE_DIR}/ui/FlyModeHelper.cpp
        ${COMMON_SOURCE_DIR}/ui/FormWithSectionsLayout.cpp
        ${COMMON_SOURCE_DIR}/ui/FourPaneMapView.cpp
        ${COMMON_SOURCE_DIR}/ui/FrameManager.cpp
        ${COMMON_SOURCE_DIR}/ui/GameDialog.cpp
        ${COMMON_SOURCE_DIR}/ui/GameEngineDialog.cpp
        ${COMMON_SOURCE_DIR}/ui/GameEngineProfileEditor.cpp
        ${COMMON_SOURCE_DIR}/ui/GameEngineProfileListBox.cpp
        ${COMMON_SOURCE_DIR}/ui/GameEngineProfileManager.cpp
        ${COMMON_SOURCE_DIR}/ui/GameListBox.cpp
        ${COMMON_SOURCE_DIR}/ui/GamesPreferencePane.cpp
        ${COMMON_SOURCE_DIR}/ui/GestureTracker.cpp
        ${COMMON_SOURCE_DIR}/ui/GetVersion.cpp
        ${COMMON_SOURCE_DIR}/ui/GLContextManager.cpp
        ${COMMON_SOURCE_DIR}/ui/HandleDragTracker.cpp
        ${COMMON_SOURCE_DIR}/ui/ImageListBox.cpp
        ${COMMON_SOURCE_DIR}/ui/InfoPanel.cpp
        ${COMMON_SOURCE_DIR}/ui/InputEvent.cpp
        ${COMMON_SOURCE_DIR}/ui/InputState.cpp
        ${COMMON_SOURCE_DIR}/ui/Inspector.cpp
        ${COMMON_SOURCE_DIR}/ui/IssueBrowser.cpp
        ${COMMON_SOURCE_DIR}/ui/IssueBrowserView.cpp
        ${COMMON_SOURCE_DIR}/ui/KeyboardPreferencePane.cpp
        ${COMMON_SOURCE_DIR}/ui/KeyboardShortcutItemDelegate.cpp
        ${COMMON_SOURCE_DIR}/ui/KeyboardShortcutModel.cpp
        ${COMMON_SOURCE_DIR}/ui/KeySequenceEdit.cpp
        ${COMMON_SOURCE_DIR}/ui/Lasso.cpp
        ${COMMON_SOURCE_DIR}/ui/LaunchGameEngine.cpp
        ${COMMON_SOURCE_DIR}/ui/LaunchGameEngineDialog.cpp
        ${COMMON_SOURCE_DIR}/ui/LayerEditor.cpp
        ${COMMON_SOURCE_DIR}/ui/LayerListBox.cpp
        ${COMMON_SOURCE_DIR}/ui/LimitedKeySequenceEdit.cpp
        ${COMMON_SOURCE_DIR}/ui/MapDocument.cpp
        ${COMMON_SOURCE_DIR}/ui/MapFrame.cpp
        ${COMMON_SOURCE_DIR}/ui/MapInspector.cpp
        ${COMMON_SOURCE_DIR}/ui/MapView.cpp
        ${COMMON_SOURCE_DIR}/ui/MapView2D.cpp
        ${COMMON_SOURCE_DIR}/ui/MapView3D.cpp
        ${COMMON_SOURCE_DIR}/ui/MapViewActivationTracker.cpp
        ${COMMON_SOURCE_DIR}/ui/MapViewBar.cpp
        ${COMMON_SOURCE_DIR}/ui/MapViewBase.cpp
        ${COMMON_SOURCE_DIR}/ui/MapViewContainer.cpp
        ${COMMON_SOURCE_DIR}/ui/MapViewToolBox.cpp
        ${COMMON_SOURCE_DIR}/ui/MaterialBrowser.cpp
        ${COMMON_SOURCE_DIR}/ui/MaterialBrowserView.cpp
        ${COMMON_SOURCE_DIR}/ui/MaterialCollectionEditor.cpp
        ${COMMON_SOURCE_DIR}/ui/ModEditor.cpp
        ${COMMON_SOURCE_DIR}/ui/MousePreferencePane.cpp
        ${COMMON_SOURCE_DIR}/ui/MoveHandleDragTracker.cpp
        ${COMMON_SOURCE_DIR}/ui/MoveObjectsTool.cpp
        ${COMMON_SOURCE_DIR}/ui/MoveObjectsToolController.cpp
        ${COMMON_SOURCE_DIR}/ui/MultiCompletionLineEdit.cpp
        ${COMMON_SOURCE_DIR}/ui/MultiPaneMapView.cpp
        ${COMMON_SOURCE_DIR}/ui/ObjExportDialog.cpp
        ${COMMON_SOURCE_DIR}/ui/OnePaneMapView.cpp
        ${COMMON_SOURCE_DIR}/ui/PickRequest.cpp
        ${COMMON_SOURCE_DIR}/ui/PopupButton.cpp
        ${COMMON_SOURCE_DIR}/ui/PopupWindow.cpp
        ${COMMON_SOURCE_DIR}/ui/PreferenceDialog.cpp
        ${COMMON_SOURCE_DIR}/ui/PreferencePane.cpp
        ${COMMON_SOURCE_DIR}/ui/QtUtils.cpp
        ${COMMON_SOURCE_DIR}/ui/RecentDocumentListBox.cpp
        ${COMMON_SOURCE_DIR}/ui/RecentDocuments.cpp
        ${COMMON_SOURCE_DIR}/ui/RenderView.cpp
        ${COMMON_SOURCE_DIR}/ui/ReplaceMaterialDialog.cpp
        ${COMMON_SOURCE_DIR}/ui/RotateHandle.cpp
        ${COMMON_SOURCE_DIR}/ui/RotateTool.cpp
        ${COMMON_SOURCE_DIR}/ui/RotateToolController.cpp
        ${COMMON_SOURCE_DIR}/ui/RotateToolPage.cpp
        ${COMMON_SOURCE_DIR}/ui/ScaleTool.cpp
        ${COMMON_SOURCE_DIR}/ui/ScaleToolController.cpp
        ${COMMON_SOURCE_DIR}/ui/ScaleToolPage.cpp
        ${COMMON_SOURCE_DIR}/ui/SelectionTool.cpp
        ${COMMON_SOURCE_DIR}/ui/SetBrushFaceAttributesTool.cpp
        ${COMMON_SOURCE_DIR}/ui/ShearTool.cpp
        ${COMMON_SOURCE_DIR}/ui/ShearToolController.cpp
        ${COMMON_SOURCE_DIR}/ui/SignalDelayer.cpp
        ${COMMON_SOURCE_DIR}/ui/SliderWithLabel.cpp
        ${COMMON_SOURCE_DIR}/ui/SmartChoiceEditor.cpp
        ${COMMON_SOURCE_DIR}/ui/SmartColorEditor.cpp
        ${COMMON_SOURCE_DIR}/ui/SmartDefaultPropertyEditor.cpp
        ${COMMON_SOURCE_DIR}/ui/SmartFlagsEditor.cpp
        ${COMMON_SOURCE_DIR}/ui/SmartPropertyEditor.cpp
        ${COMMON_SOURCE_DIR}/ui/SmartPropertyEditorManager.cpp
        ${COMMON_SOURCE_DIR}/ui/SmartWadEditor.cpp
        ${COMMON_SOURCE_DIR}/ui/SpinControl.cpp
        ${COMMON_SOURCE_DIR}/ui/Splitter.cpp
        ${COMMON_SOURCE_DIR}/ui/SwitchableMapViewContainer.cpp
        ${COMMON_SOURCE_DIR}/ui/SwitchableTitledPanel.cpp
        ${COMMON_SOURCE_DIR}/ui/TabBar.cpp
        ${COMMON_SOURCE_DIR}/ui/TabBook.cpp
        ${COMMON_SOURCE_DIR}/ui/TextOutputAdapter.cpp
        ${COMMON_SOURCE_DIR}/ui/ThreePaneMapView.cpp
        ${COMMON_SOURCE_DIR}/ui/TitleBar.cpp
        ${COMMON_SOURCE_DIR}/ui/TitledPanel.cpp
        ${COMMON_SOURCE_DIR}/ui/Tool.cpp
        ${COMMON_SOURCE_DIR}/ui/ToolBox.cpp
        ${COMMON_SOURCE_DIR}/ui/ToolBoxConnector.cpp
        ${COMMON_SOURCE_DIR}/ui/ToolChain.cpp
        ${COMMON_SOURCE_DIR}/ui/ToolController.cpp
        ${COMMON_SOURCE_DIR}/ui/TwoPaneMapView.cpp
        ${COMMON_SOURCE_DIR}/ui/UpdateConfig.cpp
        ${COMMON_SOURCE_DIR}/ui/UpdatePreferencePane.cpp
        ${COMMON_SOURCE_DIR}/ui/UpdateVersion.cpp
        ${COMMON_SOURCE_DIR}/ui/UVCameraTool.cpp
        ${COMMON_SOURCE_DIR}/ui/UVEditor.cpp
        ${COMMON_SOURCE_DIR}/ui/UVOffsetTool.cpp
        ${COMMON_SOURCE_DIR}/ui/UVOriginTool.cpp
        ${COMMON_SOURCE_DIR}/ui/UVRotateTool.cpp
        ${COMMON_SOURCE_DIR}/ui/UVScaleTool.cpp
        ${COMMON_SOURCE_DIR}/ui/UVShearTool.cpp
        ${COMMON_SOURCE_DIR}/ui/UVView.cpp
        ${COMMON_SOURCE_DIR}/ui/UVViewHelper.cpp
        ${COMMON_SOURCE_DIR}/ui/VariableStoreModel.cpp
        ${COMMON_SOURCE_DIR}/ui/VertexTool.cpp
        ${COMMON_SOURCE_DIR}/ui/VertexToolController.cpp
        ${COMMON_SOURCE_DIR}/ui/ViewConstants.cpp
        ${COMMON_SOURCE_DIR}/ui/ViewEditor.cpp
        ${COMMON_SOURCE_DIR}/ui/ViewEffectsService.cpp
        ${COMMON_SOURCE_DIR}/ui/ViewPreferencePane.cpp
        ${COMMON_SOURCE_DIR}/ui/ViewUtils.cpp
        ${COMMON_SOURCE_DIR}/ui/WelcomeWindow.cpp
        ${COMMON_SOURCE_DIR}/Uuid.cpp
)

set(COMMON_HEADER
        ${COMMON_SOURCE_DIR}/Contracts.h
        ${COMMON_SOURCE_DIR}/FileLogger.h
        ${COMMON_SOURCE_DIR}/io/AseLoader.h
        ${COMMON_SOURCE_DIR}/io/AssimpLoader.h
        ${COMMON_SOURCE_DIR}/io/BrushFaceReader.h
        ${COMMON_SOURCE_DIR}/io/BspLoader.h
        ${COMMON_SOURCE_DIR}/io/CompilationConfigParser.h
        ${COMMON_SOURCE_DIR}/io/CompilationConfigWriter.h
        ${COMMON_SOURCE_DIR}/io/DefParser.h
        ${COMMON_SOURCE_DIR}/io/DkmLoader.h
        ${COMMON_SOURCE_DIR}/io/EntityDefinitionClassInfo.h
        ${COMMON_SOURCE_DIR}/io/EntityDefinitionLoader.h
        ${COMMON_SOURCE_DIR}/io/EntityDefinitionParser.h
        ${COMMON_SOURCE_DIR}/io/EntityModelLoader.h
        ${COMMON_SOURCE_DIR}/io/EntParser.h
        ${COMMON_SOURCE_DIR}/io/ExportOptions.h
        ${COMMON_SOURCE_DIR}/io/FgdParser.h
        ${COMMON_SOURCE_DIR}/io/GameConfigParser.h
        ${COMMON_SOURCE_DIR}/io/GameEngineConfigParser.h
        ${COMMON_SOURCE_DIR}/io/GameEngineConfigWriter.h
        ${COMMON_SOURCE_DIR}/io/ImageLoader.h
        ${COMMON_SOURCE_DIR}/io/ImageLoaderImpl.h
        ${COMMON_SOURCE_DIR}/io/ImageSpriteLoader.h
        ${COMMON_SOURCE_DIR}/io/LegacyModelDefinitionParser.h
        ${COMMON_SOURCE_DIR}/io/LoadEntityDefinitions.h
        ${COMMON_SOURCE_DIR}/io/LoadEntityModel.h
        ${COMMON_SOURCE_DIR}/io/LoadMaterialCollections.h
        ${COMMON_SOURCE_DIR}/io/LoadShaders.h
        ${COMMON_SOURCE_DIR}/io/MapFileSerializer.h
        ${COMMON_SOURCE_DIR}/io/MapHeader.h
        ${COMMON_SOURCE_DIR}/io/MapParser.h
        ${COMMON_SOURCE_DIR}/io/MapReader.h
        ${COMMON_SOURCE_DIR}/io/MaterialUtils.h
        ${COMMON_SOURCE_DIR}/io/Md2Loader.h
        ${COMMON_SOURCE_DIR}/io/Md3Loader.h
        ${COMMON_SOURCE_DIR}/io/MdlLoader.h
        ${COMMON_SOURCE_DIR}/io/MdxLoader.h
        ${COMMON_SOURCE_DIR}/io/NodeReader.h
        ${COMMON_SOURCE_DIR}/io/NodeSerializer.h
        ${COMMON_SOURCE_DIR}/io/NodeWriter.h
        ${COMMON_SOURCE_DIR}/io/ObjSerializer.h
        ${COMMON_SOURCE_DIR}/io/ParseModelDefinition.h
        ${COMMON_SOURCE_DIR}/io/PathQt.h
        ${COMMON_SOURCE_DIR}/io/Quake3ShaderParser.h
        ${COMMON_SOURCE_DIR}/io/ReadDdsTexture.h
        ${COMMON_SOURCE_DIR}/io/ReadFreeImageTexture.h
        ${COMMON_SOURCE_DIR}/io/ReadM8Texture.h
        ${COMMON_SOURCE_DIR}/io/ReadMipTexture.h
        ${COMMON_SOURCE_DIR}/io/ReadWalTexture.h
        ${COMMON_SOURCE_DIR}/io/ResourceUtils.h
        ${COMMON_SOURCE_DIR}/io/SkinLoader.h
        ${COMMON_SOURCE_DIR}/io/SprLoader.h
        ${COMMON_SOURCE_DIR}/io/StandardMapParser.h
        ${COMMON_SOURCE_DIR}/io/SystemPaths.h
        ${COMMON_SOURCE_DIR}/io/WorldReader.h
        ${COMMON_SOURCE_DIR}/mdl/AddRemoveNodesCommand.h
        ${COMMON_SOURCE_DIR}/mdl/AddRemoveNodesUtils.h
        ${COMMON_SOURCE_DIR}/mdl/ApplyAndSwap.h
        ${COMMON_SOURCE_DIR}/mdl/AssetReference.h
        ${COMMON_SOURCE_DIR}/mdl/AssetUtils.h
        ${COMMON_SOURCE_DIR}/mdl/Autosaver.h
        ${COMMON_SOURCE_DIR}/mdl/BezierPatch.h
        ${COMMON_SOURCE_DIR}/mdl/Brush.h
        ${COMMON_SOURCE_DIR}/mdl/BrushBuilder.h
        ${COMMON_SOURCE_DIR}/mdl/BrushFace.h
        ${COMMON_SOURCE_DIR}/mdl/BrushFaceAttributes.h
        ${COMMON_SOURCE_DIR}/mdl/BrushFaceHandle.h
        ${COMMON_SOURCE_DIR}/mdl/BrushFaceReference.h
        ${COMMON_SOURCE_DIR}/mdl/BrushGeometry.h
        ${COMMON_SOURCE_DIR}/mdl/BrushNode.h
        ${COMMON_SOURCE_DIR}/mdl/BrushVertexCommands.h
        ${COMMON_SOURCE_DIR}/mdl/CircleShape.h
        ${COMMON_SOURCE_DIR}/mdl/ColorRange.h
        ${COMMON_SOURCE_DIR}/mdl/Command.h
        ${COMMON_SOURCE_DIR}/mdl/CommandProcessor.h
        ${COMMON_SOURCE_DIR}/mdl/CompareHits.h
        ${COMMON_SOURCE_DIR}/mdl/CompilationConfig.h
        ${COMMON_SOURCE_DIR}/mdl/CompilationProfile.h
        ${COMMON_SOURCE_DIR}/mdl/CompilationTask.h
        ${COMMON_SOURCE_DIR}/mdl/CreateResource.h
        ${COMMON_SOURCE_DIR}/mdl/CurrentGroupCommand.h
        ${COMMON_SOURCE_DIR}/mdl/DecalDefinition.h
        ${COMMON_SOURCE_DIR}/mdl/EditorContext.h
        ${COMMON_SOURCE_DIR}/mdl/EmptyBrushEntityValidator.h
        ${COMMON_SOURCE_DIR}/mdl/EmptyGroupValidator.h
        ${COMMON_SOURCE_DIR}/mdl/EmptyPropertyKeyValidator.h
        ${COMMON_SOURCE_DIR}/mdl/EmptyPropertyValueValidator.h
        ${COMMON_SOURCE_DIR}/mdl/Entity.h
        ${COMMON_SOURCE_DIR}/mdl/EntityColorPropertyValue.h
        ${COMMON_SOURCE_DIR}/mdl/EntityDefinition.h
        ${COMMON_SOURCE_DIR}/mdl/EntityDefinitionFileSpec.h
        ${COMMON_SOURCE_DIR}/mdl/EntityDefinitionGroup.h
        ${COMMON_SOURCE_DIR}/mdl/EntityDefinitionManager.h
        ${COMMON_SOURCE_DIR}/mdl/EntityDefinitionUtils.h
        ${COMMON_SOURCE_DIR}/mdl/EntityLinkManager.h
        ${COMMON_SOURCE_DIR}/mdl/EntityModel_Forward.h
        ${COMMON_SOURCE_DIR}/mdl/EntityModel.h
        ${COMMON_SOURCE_DIR}/mdl/EntityModelDataResource.h
        ${COMMON_SOURCE_DIR}/mdl/EntityModelManager.h
        ${COMMON_SOURCE_DIR}/mdl/EntityNode.h
        ${COMMON_SOURCE_DIR}/mdl/EntityNodeBase.h
        ${COMMON_SOURCE_DIR}/mdl/EntityProperties.h
        ${COMMON_SOURCE_DIR}/mdl/EntityPropertiesVariableStore.h
        ${COMMON_SOURCE_DIR}/mdl/EntityRotation.h
        ${COMMON_SOURCE_DIR}/mdl/Game.h
        ${COMMON_SOURCE_DIR}/mdl/GameConfig.h
        ${COMMON_SOURCE_DIR}/mdl/GameEngineConfig.h
        ${COMMON_SOURCE_DIR}/mdl/GameEngineProfile.h
        ${COMMON_SOURCE_DIR}/mdl/GameFileSystem.h
        ${COMMON_SOURCE_DIR}/mdl/GameInfo.h
        ${COMMON_SOURCE_DIR}/mdl/GameManager.h
        ${COMMON_SOURCE_DIR}/mdl/Grid.h
        ${COMMON_SOURCE_DIR}/mdl/Group.h
        ${COMMON_SOURCE_DIR}/mdl/GroupNode.h
        ${COMMON_SOURCE_DIR}/mdl/Hit.h
        ${COMMON_SOURCE_DIR}/mdl/HitAdapter.h
        ${COMMON_SOURCE_DIR}/mdl/HitFilter.h
        ${COMMON_SOURCE_DIR}/mdl/HitType.h
        ${COMMON_SOURCE_DIR}/mdl/IdType.h
        ${COMMON_SOURCE_DIR}/mdl/InvalidUVScaleValidator.h
        ${COMMON_SOURCE_DIR}/mdl/Issue.h
        ${COMMON_SOURCE_DIR}/mdl/IssueQuickFix.h
        ${COMMON_SOURCE_DIR}/mdl/IssueType.h
        ${COMMON_SOURCE_DIR}/mdl/Layer.h
        ${COMMON_SOURCE_DIR}/mdl/LayerNode.h
        ${COMMON_SOURCE_DIR}/mdl/LinkedGroupUtils.h
        ${COMMON_SOURCE_DIR}/mdl/LinkSourceValidator.h
        ${COMMON_SOURCE_DIR}/mdl/LinkTargetValidator.h
        ${COMMON_SOURCE_DIR}/mdl/LockState.cpp
        ${COMMON_SOURCE_DIR}/mdl/LockState.h
        ${COMMON_SOURCE_DIR}/mdl/LongPropertyKeyValidator.h
        ${COMMON_SOURCE_DIR}/mdl/LongPropertyValueValidator.h
        ${COMMON_SOURCE_DIR}/mdl/Map_Assets.h
        ${COMMON_SOURCE_DIR}/mdl/Map_Brushes.h
        ${COMMON_SOURCE_DIR}/mdl/Map_CopyPaste.h
        ${COMMON_SOURCE_DIR}/mdl/Map_Entities.h
        ${COMMON_SOURCE_DIR}/mdl/Map_Geometry.h
        ${COMMON_SOURCE_DIR}/mdl/Map_Groups.h
        ${COMMON_SOURCE_DIR}/mdl/Map_Layers.h
        ${COMMON_SOURCE_DIR}/mdl/Map_NodeLocking.h
        ${COMMON_SOURCE_DIR}/mdl/Map_Nodes.h
        ${COMMON_SOURCE_DIR}/mdl/Map_Picking.h
        ${COMMON_SOURCE_DIR}/mdl/Map_Selection.h
        ${COMMON_SOURCE_DIR}/mdl/Map_World.h
        ${COMMON_SOURCE_DIR}/mdl/Map.h
        ${COMMON_SOURCE_DIR}/mdl/MapFormat.h
        ${COMMON_SOURCE_DIR}/mdl/Material.h
        ${COMMON_SOURCE_DIR}/mdl/MaterialCollection.h
        ${COMMON_SOURCE_DIR}/mdl/MaterialManager.h
        ${COMMON_SOURCE_DIR}/mdl/MissingClassnameValidator.h
        ${COMMON_SOURCE_DIR}/mdl/MissingDefinitionValidator.h
        ${COMMON_SOURCE_DIR}/mdl/MissingModValidator.h
        ${COMMON_SOURCE_DIR}/mdl/MixedBrushContentsValidator.h
        ${COMMON_SOURCE_DIR}/mdl/ModelDefinition.h
        ${COMMON_SOURCE_DIR}/mdl/ModelSpecification.h
        ${COMMON_SOURCE_DIR}/mdl/ModelUtils.h
        ${COMMON_SOURCE_DIR}/mdl/Node.h
        ${COMMON_SOURCE_DIR}/mdl/NodeContents.h
        ${COMMON_SOURCE_DIR}/mdl/NodeIndex.h
        ${COMMON_SOURCE_DIR}/mdl/NodeQueries.h
        ${COMMON_SOURCE_DIR}/mdl/NodeVisitor.h
        ${COMMON_SOURCE_DIR}/mdl/NonIntegerVerticesValidator.h
        ${COMMON_SOURCE_DIR}/mdl/Object.h
        ${COMMON_SOURCE_DIR}/mdl/Palette.h
        ${COMMON_SOURCE_DIR}/mdl/ParallelUVCoordSystem.h
        ${COMMON_SOURCE_DIR}/mdl/ParaxialUVCoordSystem.h
        ${COMMON_SOURCE_DIR}/mdl/PasteType.h
        ${COMMON_SOURCE_DIR}/mdl/PatchNode.h
        ${COMMON_SOURCE_DIR}/mdl/PickResult.h
        ${COMMON_SOURCE_DIR}/mdl/PointEntityWithBrushesValidator.h
        ${COMMON_SOURCE_DIR}/mdl/PointTrace.h
        ${COMMON_SOURCE_DIR}/mdl/Polyhedron_BrushGeometryPayload.h
        ${COMMON_SOURCE_DIR}/mdl/Polyhedron_Checks.h
        ${COMMON_SOURCE_DIR}/mdl/Polyhedron_Clip.h
        ${COMMON_SOURCE_DIR}/mdl/Polyhedron_ConvexHull.h
        ${COMMON_SOURCE_DIR}/mdl/Polyhedron_CSG.h
        ${COMMON_SOURCE_DIR}/mdl/Polyhedron_DefaultPayload.h
        ${COMMON_SOURCE_DIR}/mdl/Polyhedron_Edge.h
        ${COMMON_SOURCE_DIR}/mdl/Polyhedron_Face.h
        ${COMMON_SOURCE_DIR}/mdl/Polyhedron_HalfEdge.h
        ${COMMON_SOURCE_DIR}/mdl/Polyhedron_Instantiation.h
        ${COMMON_SOURCE_DIR}/mdl/Polyhedron_IO.h
        ${COMMON_SOURCE_DIR}/mdl/Polyhedron_Matcher.h
        ${COMMON_SOURCE_DIR}/mdl/Polyhedron_Misc.h
        ${COMMON_SOURCE_DIR}/mdl/Polyhedron_Queries.h
        ${COMMON_SOURCE_DIR}/mdl/Polyhedron_Vertex.h
        ${COMMON_SOURCE_DIR}/mdl/Polyhedron.h
        ${COMMON_SOURCE_DIR}/mdl/Polyhedron3.h
        ${COMMON_SOURCE_DIR}/mdl/PortalFile.h
        ${COMMON_SOURCE_DIR}/mdl/PropertyDefinition.h
        ${COMMON_SOURCE_DIR}/mdl/PropertyKeyWithDoubleQuotationMarksValidator.h
        ${COMMON_SOURCE_DIR}/mdl/PropertyValueWithDoubleQuotationMarksValidator.h
        ${COMMON_SOURCE_DIR}/mdl/PushSelection.h
        ${COMMON_SOURCE_DIR}/mdl/Quake3Shader.h
        ${COMMON_SOURCE_DIR}/mdl/ReparentNodesCommand.h
        ${COMMON_SOURCE_DIR}/mdl/RepeatStack.h
        ${COMMON_SOURCE_DIR}/mdl/Resource.h
        ${COMMON_SOURCE_DIR}/mdl/ResourceId.h
        ${COMMON_SOURCE_DIR}/mdl/Selection.h
        ${COMMON_SOURCE_DIR}/mdl/SelectionChange.h
        ${COMMON_SOURCE_DIR}/mdl/SelectionCommand.h
        ${COMMON_SOURCE_DIR}/mdl/SetCurrentLayerCommand.h
        ${COMMON_SOURCE_DIR}/mdl/SetLinkIdsCommand.h
        ${COMMON_SOURCE_DIR}/mdl/SetLockStateCommand.h
        ${COMMON_SOURCE_DIR}/mdl/SetVisibilityCommand.h
        ${COMMON_SOURCE_DIR}/mdl/SoftMapBounds.h
        ${COMMON_SOURCE_DIR}/mdl/SoftMapBoundsValidator.h
        ${COMMON_SOURCE_DIR}/mdl/SwapNodeContentsCommand.h
        ${COMMON_SOURCE_DIR}/mdl/Tag.h
        ${COMMON_SOURCE_DIR}/mdl/TagAttribute.h
        ${COMMON_SOURCE_DIR}/mdl/TagManager.h
        ${COMMON_SOURCE_DIR}/mdl/TagMatcher.h
        ${COMMON_SOURCE_DIR}/mdl/TagType.h
        ${COMMON_SOURCE_DIR}/mdl/TagVisitor.h
        ${COMMON_SOURCE_DIR}/mdl/Texture.h
        ${COMMON_SOURCE_DIR}/mdl/TextureBuffer.h
        ${COMMON_SOURCE_DIR}/mdl/TextureResource.h
        ${COMMON_SOURCE_DIR}/mdl/Transaction.h
        ${COMMON_SOURCE_DIR}/mdl/TransactionScope.h
        ${COMMON_SOURCE_DIR}/mdl/UndoableCommand.h
        ${COMMON_SOURCE_DIR}/mdl/UpdateBrushFaceAttributes.h
        ${COMMON_SOURCE_DIR}/mdl/UpdateLinkedGroupsCommand.h
        ${COMMON_SOURCE_DIR}/mdl/UpdateLinkedGroupsCommandBase.h
        ${COMMON_SOURCE_DIR}/mdl/UpdateLinkedGroupsHelper.h
        ${COMMON_SOURCE_DIR}/mdl/UVCoordSystem.h
        ${COMMON_SOURCE_DIR}/mdl/Validator.h
        ${COMMON_SOURCE_DIR}/mdl/ValidatorRegistry.h
        ${COMMON_SOURCE_DIR}/mdl/VertexHandleManager.h
        ${COMMON_SOURCE_DIR}/mdl/VisibilityState.cpp
        ${COMMON_SOURCE_DIR}/mdl/VisibilityState.h
        ${COMMON_SOURCE_DIR}/mdl/WorldBoundsValidator.h
        ${COMMON_SOURCE_DIR}/mdl/WorldNode.h
        ${COMMON_SOURCE_DIR}/octree.h
        ${COMMON_SOURCE_DIR}/Preference.h
        ${COMMON_SOURCE_DIR}/PreferenceManager.h
        ${COMMON_SOURCE_DIR}/Preferences.h
        ${COMMON_SOURCE_DIR}/render/ActiveShader.h
        ${COMMON_SOURCE_DIR}/render/AllocationTracker.h
        ${COMMON_SOURCE_DIR}/render/AttrString.h
        ${COMMON_SOURCE_DIR}/render/BoundsGuideRenderer.h
        ${COMMON_SOURCE_DIR}/render/BrushRenderer.h
        ${COMMON_SOURCE_DIR}/render/BrushRendererArrays.h
        ${COMMON_SOURCE_DIR}/render/BrushRendererBrushCache.h
        ${COMMON_SOURCE_DIR}/render/Camera.h
        ${COMMON_SOURCE_DIR}/render/Circle.h
        ${COMMON_SOURCE_DIR}/render/Compass.h
        ${COMMON_SOURCE_DIR}/render/Compass2D.h
        ${COMMON_SOURCE_DIR}/render/Compass3D.h
        ${COMMON_SOURCE_DIR}/render/EdgeRenderer.h
        ${COMMON_SOURCE_DIR}/render/EntityDecalRenderer.h
        ${COMMON_SOURCE_DIR}/render/EntityLinkRenderer.h
        ${COMMON_SOURCE_DIR}/render/EntityModelRenderer.h
        ${COMMON_SOURCE_DIR}/render/EntityRenderer.h
        ${COMMON_SOURCE_DIR}/render/FaceRenderer.h
        ${COMMON_SOURCE_DIR}/render/FontDescriptor.h
        ${COMMON_SOURCE_DIR}/render/FontFactory.h
        ${COMMON_SOURCE_DIR}/render/FontGlyph.h
        ${COMMON_SOURCE_DIR}/render/FontGlyphBuilder.h
        ${COMMON_SOURCE_DIR}/render/FontManager.h
        ${COMMON_SOURCE_DIR}/render/FontTexture.h
        ${COMMON_SOURCE_DIR}/render/FreeTypeFontFactory.h
        ${COMMON_SOURCE_DIR}/render/GL.h
        ${COMMON_SOURCE_DIR}/render/GLVertex.h
        ${COMMON_SOURCE_DIR}/render/GLVertexAttributeType.h
        ${COMMON_SOURCE_DIR}/render/GLVertexType.h
        ${COMMON_SOURCE_DIR}/render/GridRenderer.h
        ${COMMON_SOURCE_DIR}/render/GroupLinkRenderer.h
        ${COMMON_SOURCE_DIR}/render/GroupRenderer.h
        ${COMMON_SOURCE_DIR}/render/IndexArray.h
        ${COMMON_SOURCE_DIR}/render/IndexArrayMap.h
        ${COMMON_SOURCE_DIR}/render/IndexArrayMapBuilder.h
        ${COMMON_SOURCE_DIR}/render/IndexedVertexList.h
        ${COMMON_SOURCE_DIR}/render/IndexRangeMap.h
        ${COMMON_SOURCE_DIR}/render/IndexRangeMapBuilder.h
        ${COMMON_SOURCE_DIR}/render/IndexRangeRenderer.h
        ${COMMON_SOURCE_DIR}/render/LinkRenderer.h
        ${COMMON_SOURCE_DIR}/render/MapRenderer.h
        ${COMMON_SOURCE_DIR}/render/MaterialIndexArrayMap.h
        ${COMMON_SOURCE_DIR}/render/MaterialIndexArrayMapBuilder.h
        ${COMMON_SOURCE_DIR}/render/MaterialIndexArrayRenderer.h
        ${COMMON_SOURCE_DIR}/render/MaterialIndexRangeMap.h
        ${COMMON_SOURCE_DIR}/render/MaterialIndexRangeMapBuilder.h
        ${COMMON_SOURCE_DIR}/render/MaterialIndexRangeRenderer.h
        ${COMMON_SOURCE_DIR}/render/ObjectRenderer.h
        ${COMMON_SOURCE_DIR}/render/OrthographicCamera.h
        ${COMMON_SOURCE_DIR}/render/PatchRenderer.h
        ${COMMON_SOURCE_DIR}/render/PerspectiveCamera.h
        ${COMMON_SOURCE_DIR}/render/PointGuideRenderer.h
        ${COMMON_SOURCE_DIR}/render/PointHandleRenderer.h
        ${COMMON_SOURCE_DIR}/render/PrimitiveRenderer.h
        ${COMMON_SOURCE_DIR}/render/PrimType.h
        ${COMMON_SOURCE_DIR}/render/Renderable.h
        ${COMMON_SOURCE_DIR}/render/RenderBatch.h
        ${COMMON_SOURCE_DIR}/render/RenderContext.h
        ${COMMON_SOURCE_DIR}/render/RenderService.h
        ${COMMON_SOURCE_DIR}/render/RenderUtils.h
        ${COMMON_SOURCE_DIR}/render/SelectionBoundsRenderer.h
        ${COMMON_SOURCE_DIR}/render/Shader.h
        ${COMMON_SOURCE_DIR}/render/ShaderConfig.h
        ${COMMON_SOURCE_DIR}/render/ShaderManager.h
        ${COMMON_SOURCE_DIR}/render/ShaderProgram.h
        ${COMMON_SOURCE_DIR}/render/Shaders.h
        ${COMMON_SOURCE_DIR}/render/Sphere.h
        ${COMMON_SOURCE_DIR}/render/SpikeGuideRenderer.h
        ${COMMON_SOURCE_DIR}/render/TextAnchor.h
        ${COMMON_SOURCE_DIR}/render/TextRenderer.h
        ${COMMON_SOURCE_DIR}/render/TextureFont.h
        ${COMMON_SOURCE_DIR}/render/Transformation.h
        ${COMMON_SOURCE_DIR}/render/TriangleRenderer.h
        ${COMMON_SOURCE_DIR}/render/Vbo.h
        ${COMMON_SOURCE_DIR}/render/VboManager.h
        ${COMMON_SOURCE_DIR}/render/VertexArray.h
        ${COMMON_SOURCE_DIR}/render/VertexListBuilder.h
        ${COMMON_SOURCE_DIR}/Thread.h
        ${COMMON_SOURCE_DIR}/TrenchBroomApp.h
        ${COMMON_SOURCE_DIR}/ui/AboutDialog.h
        ${COMMON_SOURCE_DIR}/ui/ActionBuilder.h
        ${COMMON_SOURCE_DIR}/ui/ActionContext.h
        ${COMMON_SOURCE_DIR}/ui/Actions.h
        ${COMMON_SOURCE_DIR}/ui/Animation.h
        ${COMMON_SOURCE_DIR}/ui/AppInfoPanel.h
        ${COMMON_SOURCE_DIR}/ui/AssembleBrushTool.h
        ${COMMON_SOURCE_DIR}/ui/AssembleBrushToolController3D.h
        ${COMMON_SOURCE_DIR}/ui/BorderLine.h
        ${COMMON_SOURCE_DIR}/ui/BorderPanel.h
        ${COMMON_SOURCE_DIR}/ui/CameraAnimation.h
        ${COMMON_SOURCE_DIR}/ui/CameraLinkHelper.h
        ${COMMON_SOURCE_DIR}/ui/CameraTool2D.h
        ${COMMON_SOURCE_DIR}/ui/CameraTool3D.h
        ${COMMON_SOURCE_DIR}/ui/CellLayout.h
        ${COMMON_SOURCE_DIR}/ui/CellView.h
        ${COMMON_SOURCE_DIR}/ui/ChoosePathTypeDialog.h
        ${COMMON_SOURCE_DIR}/ui/ClickableLabel.h
        ${COMMON_SOURCE_DIR}/ui/ClickableTitleBar.h
        ${COMMON_SOURCE_DIR}/ui/ClipTool.h
        ${COMMON_SOURCE_DIR}/ui/ClipToolController.h
        ${COMMON_SOURCE_DIR}/ui/CollapsibleTitledPanel.h
        ${COMMON_SOURCE_DIR}/ui/ColorButton.h
        ${COMMON_SOURCE_DIR}/ui/ColorModel.h
        ${COMMON_SOURCE_DIR}/ui/ColorsPreferencePane.h
        ${COMMON_SOURCE_DIR}/ui/ColorTable.h
        ${COMMON_SOURCE_DIR}/ui/CompilationContext.h
        ${COMMON_SOURCE_DIR}/ui/CompilationDialog.h
        ${COMMON_SOURCE_DIR}/ui/CompilationProfileEditor.h
        ${COMMON_SOURCE_DIR}/ui/CompilationProfileListBox.h
        ${COMMON_SOURCE_DIR}/ui/CompilationProfileManager.h
        ${COMMON_SOURCE_DIR}/ui/CompilationRun.h
        ${COMMON_SOURCE_DIR}/ui/CompilationRunner.h
        ${COMMON_SOURCE_DIR}/ui/CompilationTaskListBox.h
        ${COMMON_SOURCE_DIR}/ui/CompilationVariables.h
        ${COMMON_SOURCE_DIR}/ui/Console.h
        ${COMMON_SOURCE_DIR}/ui/ContainerBar.h
        ${COMMON_SOURCE_DIR}/ui/ControlListBox.h
        ${COMMON_SOURCE_DIR}/ui/CrashDialog.h
        ${COMMON_SOURCE_DIR}/ui/CrashReporter.h
        ${COMMON_SOURCE_DIR}/ui/CreateBrushesToolBase.h
        ${COMMON_SOURCE_DIR}/ui/CreateEntityTool.h
        ${COMMON_SOURCE_DIR}/ui/CreateEntityToolController.h
        ${COMMON_SOURCE_DIR}/ui/CurrentGameIndicator.h
        ${COMMON_SOURCE_DIR}/ui/CyclingMapView.h
        ${COMMON_SOURCE_DIR}/ui/DialogHeader.h
        ${COMMON_SOURCE_DIR}/ui/DrawShapeTool.h
        ${COMMON_SOURCE_DIR}/ui/DrawShapeToolController2D.h
        ${COMMON_SOURCE_DIR}/ui/DrawShapeToolController3D.h
        ${COMMON_SOURCE_DIR}/ui/DrawShapeToolExtension.h
        ${COMMON_SOURCE_DIR}/ui/DrawShapeToolExtensions.h
        ${COMMON_SOURCE_DIR}/ui/DrawShapeToolPage.h
        ${COMMON_SOURCE_DIR}/ui/DropTracker.h
        ${COMMON_SOURCE_DIR}/ui/EdgeTool.h
        ${COMMON_SOURCE_DIR}/ui/EdgeToolController.h
        ${COMMON_SOURCE_DIR}/ui/ElidedLabel.h
        ${COMMON_SOURCE_DIR}/ui/EnableDisableTagCallback.h
        ${COMMON_SOURCE_DIR}/ui/EntityBrowser.h
        ${COMMON_SOURCE_DIR}/ui/EntityBrowserView.h
        ${COMMON_SOURCE_DIR}/ui/EntityDefinitionFileChooser.h
        ${COMMON_SOURCE_DIR}/ui/EntityInspector.h
        ${COMMON_SOURCE_DIR}/ui/EntityPropertyEditor.h
        ${COMMON_SOURCE_DIR}/ui/EntityPropertyGrid.h
        ${COMMON_SOURCE_DIR}/ui/EntityPropertyItemDelegate.h
        ${COMMON_SOURCE_DIR}/ui/EntityPropertyModel.h
        ${COMMON_SOURCE_DIR}/ui/EntityPropertyTable.h
        ${COMMON_SOURCE_DIR}/ui/ExtrudeTool.h
        ${COMMON_SOURCE_DIR}/ui/ExtrudeToolController.h
        ${COMMON_SOURCE_DIR}/ui/FaceAttribsEditor.h
        ${COMMON_SOURCE_DIR}/ui/FaceInspector.h
        ${COMMON_SOURCE_DIR}/ui/FaceTool.h
        ${COMMON_SOURCE_DIR}/ui/FaceToolController.h
        ${COMMON_SOURCE_DIR}/ui/FlagsEditor.h
        ${COMMON_SOURCE_DIR}/ui/FlagsPopupEditor.h
        ${COMMON_SOURCE_DIR}/ui/FlashSelectionAnimation.h
        ${COMMON_SOURCE_DIR}/ui/FlyModeHelper.h
        ${COMMON_SOURCE_DIR}/ui/FormWithSectionsLayout.h
        ${COMMON_SOURCE_DIR}/ui/FourPaneMapView.h
        ${COMMON_SOURCE_DIR}/ui/FrameManager.h
        ${COMMON_SOURCE_DIR}/ui/GameDialog.h
        ${COMMON_SOURCE_DIR}/ui/GameEngineDialog.h
        ${COMMON_SOURCE_DIR}/ui/GameEngineProfileEditor.h
        ${COMMON_SOURCE_DIR}/ui/GameEngineProfileListBox.h
        ${COMMON_SOURCE_DIR}/ui/GameEngineProfileManager.h
        ${COMMON_SOURCE_DIR}/ui/GameListBox.h
        ${COMMON_SOURCE_DIR}/ui/GamesPreferencePane.h
        ${COMMON_SOURCE_DIR}/ui/GestureTracker.h
        ${COMMON_SOURCE_DIR}/ui/GetVersion.h
        ${COMMON_SOURCE_DIR}/ui/GLContextManager.h
        ${COMMON_SOURCE_DIR}/ui/HandleDragTracker.h
        ${COMMON_SOURCE_DIR}/ui/ImageListBox.h
        ${COMMON_SOURCE_DIR}/ui/InfoPanel.h
        ${COMMON_SOURCE_DIR}/ui/InputEvent.h
        ${COMMON_SOURCE_DIR}/ui/InputState.h
        ${COMMON_SOURCE_DIR}/ui/Inspector.h
        ${COMMON_SOURCE_DIR}/ui/IssueBrowser.h
        ${COMMON_SOURCE_DIR}/ui/IssueBrowserView.h
        ${COMMON_SOURCE_DIR}/ui/KeyboardPreferencePane.h
        ${COMMON_SOURCE_DIR}/ui/KeyboardShortcutItemDelegate.h
        ${COMMON_SOURCE_DIR}/ui/KeyboardShortcutModel.h
        ${COMMON_SOURCE_DIR}/ui/KeySequenceEdit.h
        ${COMMON_SOURCE_DIR}/ui/Lasso.h
        ${COMMON_SOURCE_DIR}/ui/LaunchGameEngine.h
        ${COMMON_SOURCE_DIR}/ui/LaunchGameEngineDialog.h
        ${COMMON_SOURCE_DIR}/ui/LayerEditor.h
        ${COMMON_SOURCE_DIR}/ui/LayerListBox.h
        ${COMMON_SOURCE_DIR}/ui/LimitedKeySequenceEdit.h
        ${COMMON_SOURCE_DIR}/ui/MapDocument.h
        ${COMMON_SOURCE_DIR}/ui/MapFrame.h
        ${COMMON_SOURCE_DIR}/ui/MapInspector.h
        ${COMMON_SOURCE_DIR}/ui/MapView.h
        ${COMMON_SOURCE_DIR}/ui/MapView2D.h
        ${COMMON_SOURCE_DIR}/ui/MapView3D.h
        ${COMMON_SOURCE_DIR}/ui/MapViewActivationTracker.h
        ${COMMON_SOURCE_DIR}/ui/MapViewBar.h
        ${COMMON_SOURCE_DIR}/ui/MapViewBase.h
        ${COMMON_SOURCE_DIR}/ui/MapViewContainer.h
        ${COMMON_SOURCE_DIR}/ui/MapViewLayout.h
        ${COMMON_SOURCE_DIR}/ui/MapViewToolBox.h
        ${COMMON_SOURCE_DIR}/ui/MaterialBrowser.h
        ${COMMON_SOURCE_DIR}/ui/MaterialBrowserView.h
        ${COMMON_SOURCE_DIR}/ui/MaterialCollectionEditor.h
        ${COMMON_SOURCE_DIR}/ui/ModEditor.h
        ${COMMON_SOURCE_DIR}/ui/MousePreferencePane.h
        ${COMMON_SOURCE_DIR}/ui/MoveHandleDragTracker.h
        ${COMMON_SOURCE_DIR}/ui/MoveObjectsTool.h
        ${COMMON_SOURCE_DIR}/ui/MoveObjectsToolController.h
        ${COMMON_SOURCE_DIR}/ui/MultiCompletionLineEdit.h
        ${COMMON_SOURCE_DIR}/ui/MultiPaneMapView.h
        ${COMMON_SOURCE_DIR}/ui/ObjExportDialog.h
        ${COMMON_SOURCE_DIR}/ui/OnePaneMapView.h
        ${COMMON_SOURCE_DIR}/ui/PickRequest.h
        ${COMMON_SOURCE_DIR}/ui/PopupButton.h
        ${COMMON_SOURCE_DIR}/ui/PopupWindow.h
        ${COMMON_SOURCE_DIR}/ui/PreferenceDialog.h
        ${COMMON_SOURCE_DIR}/ui/PreferencePane.h
        ${COMMON_SOURCE_DIR}/ui/QtUtils.h
        ${COMMON_SOURCE_DIR}/ui/RecentDocumentListBox.h
        ${COMMON_SOURCE_DIR}/ui/RecentDocuments.h
        ${COMMON_SOURCE_DIR}/ui/RenderView.h
        ${COMMON_SOURCE_DIR}/ui/ReplaceMaterialDialog.h
        ${COMMON_SOURCE_DIR}/ui/RotateHandle.h
        ${COMMON_SOURCE_DIR}/ui/RotateTool.h
        ${COMMON_SOURCE_DIR}/ui/RotateToolController.h
        ${COMMON_SOURCE_DIR}/ui/RotateToolPage.h
        ${COMMON_SOURCE_DIR}/ui/ScaleTool.h
        ${COMMON_SOURCE_DIR}/ui/ScaleToolController.h
        ${COMMON_SOURCE_DIR}/ui/ScaleToolPage.h
        ${COMMON_SOURCE_DIR}/ui/SelectionTool.h
        ${COMMON_SOURCE_DIR}/ui/SetBrushFaceAttributesTool.h
        ${COMMON_SOURCE_DIR}/ui/ShearTool.h
        ${COMMON_SOURCE_DIR}/ui/ShearToolController.h
        ${COMMON_SOURCE_DIR}/ui/SignalDelayer.h
        ${COMMON_SOURCE_DIR}/ui/SliderWithLabel.h
        ${COMMON_SOURCE_DIR}/ui/SmartChoiceEditor.h
        ${COMMON_SOURCE_DIR}/ui/SmartColorEditor.h
        ${COMMON_SOURCE_DIR}/ui/SmartDefaultPropertyEditor.h
        ${COMMON_SOURCE_DIR}/ui/SmartFlagsEditor.h
        ${COMMON_SOURCE_DIR}/ui/SmartPropertyEditor.h
        ${COMMON_SOURCE_DIR}/ui/SmartPropertyEditorManager.h
        ${COMMON_SOURCE_DIR}/ui/SmartWadEditor.h
        ${COMMON_SOURCE_DIR}/ui/SpinControl.h
        ${COMMON_SOURCE_DIR}/ui/Splitter.h
        ${COMMON_SOURCE_DIR}/ui/SwitchableMapViewContainer.h
        ${COMMON_SOURCE_DIR}/ui/SwitchableTitledPanel.h
        ${COMMON_SOURCE_DIR}/ui/TabBar.h
        ${COMMON_SOURCE_DIR}/ui/TabBook.h
        ${COMMON_SOURCE_DIR}/ui/TextOutputAdapter.h
        ${COMMON_SOURCE_DIR}/ui/ThreePaneMapView.h
        ${COMMON_SOURCE_DIR}/ui/TitleBar.h
        ${COMMON_SOURCE_DIR}/ui/TitledPanel.h
        ${COMMON_SOURCE_DIR}/ui/Tool.h
        ${COMMON_SOURCE_DIR}/ui/ToolBox.h
        ${COMMON_SOURCE_DIR}/ui/ToolBoxConnector.h
        ${COMMON_SOURCE_DIR}/ui/ToolChain.h
        ${COMMON_SOURCE_DIR}/ui/ToolController.h
        ${COMMON_SOURCE_DIR}/ui/TwoPaneMapView.h
        ${COMMON_SOURCE_DIR}/ui/UpdateConfig.h
        ${COMMON_SOURCE_DIR}/ui/UpdatePreferencePane.h
        ${COMMON_SOURCE_DIR}/ui/UpdateVersion.h
        ${COMMON_SOURCE_DIR}/ui/UVCameraTool.h
        ${COMMON_SOURCE_DIR}/ui/UVEditor.h
        ${COMMON_SOURCE_DIR}/ui/UVOffsetTool.h
        ${COMMON_SOURCE_DIR}/ui/UVOriginTool.h
        ${COMMON_SOURCE_DIR}/ui/UVRotateTool.h
        ${COMMON_SOURCE_DIR}/ui/UVScaleTool.h
        ${COMMON_SOURCE_DIR}/ui/UVShearTool.h
        ${COMMON_SOURCE_DIR}/ui/UVView.h
        ${COMMON_SOURCE_DIR}/ui/UVViewHelper.h
        ${COMMON_SOURCE_DIR}/ui/VariableStoreModel.h
        ${COMMON_SOURCE_DIR}/ui/VertexTool.h
        ${COMMON_SOURCE_DIR}/ui/VertexToolBase.h
        ${COMMON_SOURCE_DIR}/ui/VertexToolController.h
        ${COMMON_SOURCE_DIR}/ui/VertexToolControllerBase.h
        ${COMMON_SOURCE_DIR}/ui/ViewConstants.h
        ${COMMON_SOURCE_DIR}/ui/ViewEditor.h
        ${COMMON_SOURCE_DIR}/ui/ViewEffectsService.h
        ${COMMON_SOURCE_DIR}/ui/ViewPreferencePane.h
        ${COMMON_SOURCE_DIR}/ui/ViewUtils.h
        ${COMMON_SOURCE_DIR}/ui/WelcomeWindow.h
        ${COMMON_SOURCE_DIR}/Uuid.h
)

add_library(common OBJECT ${COMMON_SOURCE} ${COMMON_HEADER})
set_target_properties(common PROPERTIES AUTOMOC TRUE)
target_include_directories(common PUBLIC ${COMMON_SOURCE_DIR})
target_link_libraries(common 
  PUBLIC TbBaseLib TbElLib TbFsLib KdLib VmLib Qt6::Widgets Qt6::OpenGL Qt6::OpenGLWidgets Qt6::Svg
  PRIVATE GLEW::GLEW OpenGL::GL UpdateLib cpptrace::cpptrace tinyxml2::tinyxml2 miniz::miniz freeimage::FreeImage freetype assimp::assimp fmt::fmt-header-only)

target_link_libraries(common PRIVATE CompilerConfig PrecompileStdHeaders PrecompileQtHeaders)

# Organize files into IDE folders
source_group(TREE "${COMMON_SOURCE_DIR}" FILES ${COMMON_SOURCE} ${COMMON_HEADER})

if(APPLE)
    # Silence macOS OpenGL deprecation warnings
    target_compile_definitions(common PUBLIC GL_SILENCE_DEPRECATION)
endif()

# Create the cmake script for generating the version information
target_include_directories(common PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
add_custom_target(generate_version ${CMAKE_COMMAND}
  -D UTILS="${CMAKE_SOURCE_DIR}/cmake/Utils.cmake"
  -D APP_BUILD_TYPE="${APP_BUILD_TYPE}"
  -D SRC="${COMMON_SOURCE_DIR}/Version.h.in"
  -D DST="${CMAKE_CURRENT_BINARY_DIR}/Version.h"
  -D GIT_EXECUTABLE="${GIT_EXECUTABLE}"
  -P "${CMAKE_CURRENT_SOURCE_DIR}/cmake/GenerateVersion.cmake")
add_dependencies(common generate_version)

add_subdirectory(test)
